<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="add()" nz-button nzType="primary">新建</button>
  </ng-template>
</page-header>
<nz-card>
  <sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
  <st #st [data]="url" [columns]="columns" [res]="{ reName: { list: 'items' ,total: 'totalCount'} }"
    [req]="{reName: { pi: 'skipCount' ,ps: 'maxResultCount'}}"></st>
</nz-card>

<nz-drawer [nzClosable]="true" [nzWidth]="460" [nzVisible]="editVisible" nzPlacement="right" [nzTitle]="title"
  (nzOnClose)="close()" [nzFooter]="footerTpl">
  <form nz-form [formGroup]="form" se-container="1" labelWidth="120" *nzDrawerContent>
    <se label="药品剂型编码" autoErrorTip required>
      <input nz-input formControlName="drugDosformCodg" placeholder="药品目录类别编码" />
    </se>
    <se label="药品剂型名称" autoErrorTip required>
      <input nz-input formControlName="drugDosformName" placeholder="药品目录类别名称" />
    </se>
    <se label="标准字典" required>
      <nz-select formControlName="dataDictCode" nzPlaceHolder="项目类别">
        <nz-option *ngFor="let dataDic of dataDictList" [nzValue]="dataDic.id" [nzLabel]="dataDic.pubItemTypeName">
        </nz-option>
      </nz-select>
    </se>
    <se label="有效标识">
      <label nz-checkbox formControlName="valiFlag"></label>
    </se>
  </form>

  <ng-template #footerTpl>
    <div style="float: right">
      <button nz-button nzType="primary" type="submit" (click)="save()">确定</button>
    </div>
  </ng-template>
</nz-drawer>
